﻿using Domain.Entitys;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configers
{
    public class CFFKConfiger : IEntityTypeConfiguration<CFFK>
    {
        public void Configure(EntityTypeBuilder<CFFK> builder)
        {
            builder.ToTable(nameof(CFFK));
            builder.HasKey(c => c.FfkId);
            builder.Property(c => c.FirstKindId);
            builder.Property(c => c.FirstKindName);
            builder.Property(c => c.FirstKindSaleId);
            builder.Property(c => c.FirstKindSalaryId);
        }
    }
}
